#Makefile for gird & Laplace_solver by HHL

OBJ = laplace.o grid.o 
FC = gfortran 
FFLAGS = -fopenmp -c -Wall -g 

#solver:$(OBJ) 
#	$(FC) $(OBJ) -fopenmp -o solver 
#laplace.o:laplace.f90
#	$(FC) laplace.f90 $(FFLAGS) -o laplace.o 
#grid.o:grid.f90 
#	$(FC) grid.f90 $(FFLAGS) -o grid.o 

solver:$(OBJ) 
	$(FC) $^ -fopenmp -o solver 
%.o:%.f90
	$(FC) $^ $(FFLAGS) -o $@

clean: 
	rm *.o solver -rf

